package com.ynet.hmds28.user.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.boot.hsf.annotation.HSFProvider;
import com.ynet.hm.user.domain.ServiceProvideBean;
import com.ynet.hm.user.service.QueryProvideByIdService;
import com.ynet.hmds28.user.dao.ServiceprovideDao;
import com.ynet.hmds28.user.model.Serviceprovide;
@Transactional
@HSFProvider(serviceInterface = QueryProvideByIdService.class, serviceVersion = "1.0.0",serviceGroup = "hmds28")
public class QueryProvideByIdServiceImpl implements QueryProvideByIdService {
	@Autowired
	private ServiceprovideDao serviceprovideDao;
	@Override
	public ServiceProvideBean queryServiceById(String serviceId) {
		Serviceprovide serviceProvide=serviceprovideDao.selectByPrimaryKey(serviceId);
		ServiceProvideBean spb=new ServiceProvideBean();
		if(serviceProvide!=null){
			spb.setCreatetime(serviceProvide.getCreatetime());
			spb.setExportfield(serviceProvide.getExportfield());
			spb.setImportfield(serviceProvide.getImportfield());
			spb.setRemark(serviceProvide.getRemark());
			spb.setServicecostrule(serviceProvide.getServicecostrule());
			spb.setServicedesc(serviceProvide.getServicedesc());
			spb.setServicemethod(serviceProvide.getServicemethod());
			spb.setServicename(serviceProvide.getServicename());
			spb.setServiceurl(serviceProvide.getServiceurl());
			spb.setSeviceproviceid(serviceProvide.getSeviceproviceid());
			spb.setUserid(serviceProvide.getUserid());
		}
		return spb;
	}

}
